package com.cowcode.biz.impl;

import com.cowcode.biz.TextBiz;
import com.cowcode.dao.TextDao;
import com.cowcode.entity.Text;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * User: ljy
 * Date: 2021/6/25
 * Time: 22:27
 */
@Service
public class TextBizImpl implements TextBiz {
    @Resource
    private TextDao textDao;

    @Override
    public List<Text> queryAnswer() {
        return textDao.queryAnswer();
    }

    @Override
    public boolean answerQuestion(Text text) {
        return textDao.answerQuestion(text);
    }

    @Override
    public boolean deleteByTid(int tid) {
        return textDao.deleteByTid(tid);
    }

    @Override
    public boolean deleteByQid(int qid) {
        return textDao.deleteByQid(qid);
    }

    @Override
    public List<Text> queryByQid(int qid) {
        return textDao.queryByQid(qid);
    }

}
